const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  lintOnSave: false,
  transpileDependencies: true,
  devServer: {
    host: '0.0.0.0', // 允许外部访问
    port: 8080,
    allowedHosts: 'all', // 允许所有主机访问
    client: {
      webSocketURL: 'auto://0.0.0.0:0/ws' // 确保WebSocket连接正确
    }
  }
})
